﻿using System;
using UnityEngine;

// Token: 0x020001E2 RID: 482
public class WaitAction : AgentAction
{
	// Token: 0x06000A48 RID: 2632 RVA: 0x0005A569 File Offset: 0x00058769
	public WaitAction(float duration)
	{
		this.name = "Wait";
		this.duration = duration;
	}

	// Token: 0x06000A49 RID: 2633 RVA: 0x0005A583 File Offset: 0x00058783
	public override void StartAction()
	{
		this.startTime = Time.time;
	}

	// Token: 0x06000A4A RID: 2634 RVA: 0x0005A590 File Offset: 0x00058790
	public override bool IsCompleted()
	{
		return this.hasStarted && Time.time > this.startTime + this.duration;
	}

	// Token: 0x04000F9F RID: 3999
	private float startTime;

	// Token: 0x04000FA0 RID: 4000
	private float duration;
}
